package com.butang.service;

import com.butang.AOP.Log;
import com.butang.mapper.DeptLogMapper;
import com.butang.pojo.DeptLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * ClassName: DeptLogServiceImpl
 * Package: com.butang.service
 * Description:
 *
 * @Author BuTang
 * @Create 2023/7/18 14:53
 * @Version 1.0
 */
@Component
public class DeptLogServiceImpl implements DeptLogService{
    @Autowired
    private DeptLogMapper deptLogMapper;

    @Override
    @Log
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    public void insert(DeptLog deptLog) {
        deptLogMapper.insert(deptLog);
    }
}
